www.gusucode.com > WSTMall PHP网店系统 v1.6.0PHP源码程序 > WSTMall PHP网店系统 v1.6.0/wstmall_v1.6.0_160506/wstmall_v1.6.0_160506/Apps/Admin/Action/LogLoginsAction.class.php
<?php namespace Admin\Action;; /** * ============================================================================ * WSTMall开源商城 * 官网地址:http://www.wstmall.com * 联系QQ:707563272 * ============================================================================ * 登录日志控制器 */ class LogLoginsAction extends BaseAction{ /** * 查看 */ public function toView(){ $this->isLogin(); $this->checkPrivelege('dlrz_00'); $m = D('Admin/LogLogins'); if(I('id')>0){ $object = $m->get(); $this->assign('object',$object); } $this->view->display('/loglogins/view'); } /** * 分页查询 */ public function index(){ $this->isLogin(); $this->checkPrivelege('dlrz_00'); $m = D('Admin/LogLogins'); $page = $m->queryByPage(); $pager = new \Think\Page($page['total'],$page['pageSize'],I()); $page['pager'] = $pager->show(); $this->assign('Page',$page); $this->assign('startDate',I('startDate',date('Y-m-d',strtotime('-30 days')))); $this->assign('endDate',I('endDate',date('Y-m-d'))); $this->assign('key',I('key')); $this->display("/loglogins/list"); } }; ?>